summaryrefslogtreecommitdiff
path: root/frontend/app/drive/[...path]/page.tsx
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-11 13:40:27 +0100
committerdiogo464 <[email protected]>2025-08-11 13:40:27 +0100
commitf69ca010b80703389fffe75fc6dca907e53df74d (patch)
tree1cf081f49b3793aae3f298ed50753841fd306424 /frontend/app/drive/[...path]/page.tsx
parent4af66f418b6837b6441b4e8eaf2d8ede585238b9 (diff)
basic file upload
Diffstat (limited to 'frontend/app/drive/[...path]/page.tsx')
-rw-r--r--frontend/app/drive/[...path]/page.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontend/app/drive/[...path]/page.tsx b/frontend/app/drive/[...path]/page.tsx
index 75a1bb1..60c2cca 100644
--- a/frontend/app/drive/[...path]/page.tsx
+++ b/frontend/app/drive/[...path]/page.tsx
@@ -2,7 +2,8 @@ import { Drive_ls, Drive_basename, Drive_parent } from "@/lib/drive"
2import { formatSize } from "@/lib/utils" 2import { formatSize } from "@/lib/utils"
3import Link from "next/link" 3import Link from "next/link"
4import { cookies } from 'next/headers'; 4import { cookies } from 'next/headers';
5import { Auth_get_user } from "@/lib/auth"; 5import { Auth_get_user, Auth_user_can_upload } from "@/lib/auth";
6import FileUpload from "@/components/FileUpload"
6 7
7interface DrivePageProps { 8interface DrivePageProps {
8 params: Promise<{ 9 params: Promise<{
@@ -130,6 +131,13 @@ export default async function DrivePage({ params }: DrivePageProps) {
130 </table> 131 </table>
131 </div> 132 </div>
132 </div> 133 </div>
134
135 {/* File Upload Component */}
136 {Auth_user_can_upload(user) && (
137 <FileUpload
138 targetPath={fullPath}
139 />
140 )}
133 </div> 141 </div>
134 </div> 142 </div>
135 ) 143 )